וַֽ֠יַּעֲבִירוּ אֶת־בְּנֵיהֶ֤ם וְאֶת־בְּנֽוֹתֵיהֶם֙ בָּאֵ֔שׁ וַיִּקְסְמ֥וּ קְסָמִ֖ים וַיְנַחֵ֑שׁוּ וַיִּֽתְמַכְּר֗וּ לַעֲשׂ֥וֹת הָרַ֛ע בְּעֵינֵ֥י יְהוָ֖ה לְהַכְעִיסֽוֹ׃
Rashi on II Kings
And they devoted themselves. They sold themselves for that [purpose].